package cn.john.hrm.dto;

import cn.john.hrm.domain.Course;
import cn.john.hrm.domain.CourseDetail;
import cn.john.hrm.domain.CourseMarket;

import javax.validation.constraints.NotNull;

public class CourseDto {
    // 基本信息
    @NotNull(message = "课程基本信息不能为空")
    private Course course;
    // 市场信息
    @NotNull(message = "课程市场信息不能为空")
    private CourseMarket courseMarket;
    // 课程信息
    @NotNull(message = "课程详情不能为空")
    private CourseDetail courseDetail;

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public CourseMarket getCourseMarket() {
        return courseMarket;
    }

    public void setCourseMarket(CourseMarket courseMarket) {
        this.courseMarket = courseMarket;
    }

    public CourseDetail getCourseDetail() {
        return courseDetail;
    }

    public void setCourseDetail(CourseDetail courseDetail) {
        this.courseDetail = courseDetail;
    }
}
